package com.beta.cust.bind.webapi.utils;

import org.apache.commons.lang.StringUtils;

/**
 * @Auther: pcc
 * @Date: 2024/4/3 11:30
 * @Description:
 */
public class CommonUtil {

    public static String maskPhone(String phoneNumber){
        if(StringUtils.isEmpty(phoneNumber)){
            return StringUtils.EMPTY;
        }
        return phoneNumber.substring(0, 3) + "****" + phoneNumber.substring(7);
    }
}
